Derivation of the Einstein Field Equations